package online.misscl.lsy.entity.dto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author misscl
 * @since 2023/03/11 11:14
 */
@Data
@ApiModel(value = "RefineUserInfoDTO",description = "用户完善信息参数实体类")
public class RefineUserInfoDTO implements Serializable {

    @ApiModelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty("年龄")
    @NotBlank(message = "年龄不能为空")
    private String age;

    @ApiModelProperty("性别")
    @NotBlank(message = "性别不能为空")
    private String sex;

    @ApiModelProperty("身份证")
    @NotBlank(message = "身份证不能为空")
    @Pattern(regexp = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])((\\d{4})|\\d{3}[A-Z])$")
    private String idCard;

    @ApiModelProperty("联系号码")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    private String phone;

    @ApiModelProperty("地址")
    @NotBlank(message = "地址不能为空")
    private String address;

}
